package com.yohann.order_service.mapper;

import com.yohann.order_service.entity.Orders;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yohann.order_service.entity.vo.OrderVo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 订单表 Mapper 接口
 * </p>
 *
 * @author Yohann
 * @since 2020-11-09
 */
public interface OrdersMapper extends BaseMapper<Orders> {

    List<OrderVo> queryOrder(Map<String, Object> map);

    OrderVo getOrderInfo(String id);

    List<OrderVo> getUserOrder(int id);
}
